add_executable(Qt3DCoreTest WIN32 MACOSX_BUNDLE
    testpostmanarbiter.cpp testpostmanarbiter_p.h
)
target_include_directories(Qt3DCoreTest PRIVATE
    ${CMAKE_CURRENT_SOURCE_DIR}
)

target_compile_definitions(Qt3DCoreTest PRIVATE
    QT_NO_CAST_FROM_ASCII
    QT_NO_FOREACH
)

target_link_libraries(Qt3DCoreTest PRIVATE
    Qt${QT_VERSION_MAJOR}::3DCore
    Qt${QT_VERSION_MAJOR}::3DCorePrivate
    Qt${QT_VERSION_MAJOR}::Core
    Qt${QT_VERSION_MAJOR}::CorePrivate
    Qt${QT_VERSION_MAJOR}::Gui
)

if(QT_FEATURE_private_tests)
    target_sources(Qt3DCoreTest PUBLIC
        qbackendnodetester.cpp qbackendnodetester_p.h
    )
endif()

install(TARGETS Qt3DCoreTest
    BUNDLE DESTINATION .
    RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)

# Consider using qt_generate_deploy_app_script() for app deployment if
# the project can use Qt 6.3. In that case rerun qmake2cmake with
# --min-qt-version=6.3.
